package com.common.frame.extension

import android.graphics.drawable.Drawable
import com.common.frame.utils.Utils
import java.io.InputStream

fun Int.getString(): String = Utils.app.resources.getString(this)

fun Int.getColor(): Int = Utils.app.resources.getColor(this)

fun Int.getString(vararg formatArgs: Any?): String =
    Utils.app.resources.getString(this, *formatArgs)

fun Int.getDrawable(): Drawable = Utils.app.resources.getDrawable(this)

fun Int.getDimen(): Float = Utils.app.resources.getDimension(this)

fun Int.getDimensionPixelSize(): Int = Utils.app.resources.getDimensionPixelSize(this)

fun Int.openRawResource(): InputStream = Utils.app.resources.openRawResource(this)
